package com.kekezu.kppw.dataprocess;

import java.util.Map;

import android.content.Context;

import com.kekezu.kppw.data.WorkData;

public class WorkDP {
	/**
	 * 购买作品
	 * 
	 * @param strId
	 * @param context
	 * @return
	 */
	public static Map<String, String> buyGoods(String strId, Context context) {
		return WorkData.buyGoods(strId, context);
	}

	/**
	 * 购买商品付款
	 * 
	 * @param orderId
	 * @param intType
	 * @param strPwd
	 * @param context
	 * @return
	 */
	public static Map<String, String> cashPayGoods(String orderId, int intType,
			String strPwd, Context context) {
		return WorkData.cashPayGoods(orderId, intType, strPwd, context);
	}

	/**
	 * 购买商品第三方支付
	 * 
	 * @param orderId
	 * @param strType
	 * @param context
	 * @return
	 */
	public static String ThirdCashGoodsPay(String orderId, String strType,
			Context context) {
		return WorkData.ThirdCashGoodsPay(orderId, strType, context);
	}

	/**
	 * 购买商品的详情
	 * 
	 * @param strId
	 * @param context
	 * @return
	 */
	public static Map<String, String> buyGoodsDetail(String strId,
			Context context) {
		return WorkData.buyGoodsDetail(strId, context);
	}

	/**
	 * 确认作品
	 * 
	 * @param strId
	 * @param context
	 * @return
	 */
	public static String confirmGoods(String strId, Context context) {
		return WorkData.confirmGoods(strId, context);
	}

	public static String rightGoods(String strId, int intType, String strDesc,
			Context context) {
		return WorkData.rightGoods(strId, intType, strDesc, context);
	}

	public static String[] commentGoods(String strId, String intType,
			String strDesc, float speed, float quality, float attitude,
			Context context) {
		return WorkData.commentGoods(strId, intType, strDesc, speed, quality,
				attitude, context);
	}

	public static Map<String, String> saleGoodsDetail(String strId,
			Context context) {
		return WorkData.saleGoodsDetail(strId, context);
	}

	public static Map<String, String> getComment(String strId, Context context) {
		return WorkData.getComment(strId, context);
	}

}
